package com.example.mobile2021606127cxz0615homework;

import androidx.appcompat.app.AppCompatActivity;

import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {
    MySQLiteOpenHelper openHelper;
    SQLiteDatabase database;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        openHelper = new MySQLiteOpenHelper(this, "SmartTraffic.db", null, 1);
        database = openHelper.getReadableDatabase();
        database.close();
    }
}